package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AttractionCarouselMapper;
import com.ruoyi.system.domain.AttractionCarousel;
import com.ruoyi.system.service.IAttractionCarouselService;

/**
 * 景点轮播图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Service
public class AttractionCarouselServiceImpl implements IAttractionCarouselService 
{
    @Autowired
    private AttractionCarouselMapper attractionCarouselMapper;

    /**
     * 查询景点轮播图
     * 
     * @param id 景点轮播图主键
     * @return 景点轮播图
     */
    @Override
    public AttractionCarousel selectAttractionCarouselById(Long id)
    {
        return attractionCarouselMapper.selectAttractionCarouselById(id);
    }

    /**
     * 查询景点轮播图列表
     * 
     * @param attractionCarousel 景点轮播图
     * @return 景点轮播图
     */
    @Override
    public List<AttractionCarousel> selectAttractionCarouselList(AttractionCarousel attractionCarousel)
    {
        return attractionCarouselMapper.selectAttractionCarouselList(attractionCarousel);
    }

    /**
     * 新增景点轮播图
     * 
     * @param attractionCarousel 景点轮播图
     * @return 结果
     */
    @Override
    public int insertAttractionCarousel(AttractionCarousel attractionCarousel)
    {
        return attractionCarouselMapper.insertAttractionCarousel(attractionCarousel);
    }

    /**
     * 修改景点轮播图
     * 
     * @param attractionCarousel 景点轮播图
     * @return 结果
     */
    @Override
    public int updateAttractionCarousel(AttractionCarousel attractionCarousel)
    {
        return attractionCarouselMapper.updateAttractionCarousel(attractionCarousel);
    }

    /**
     * 批量删除景点轮播图
     * 
     * @param ids 需要删除的景点轮播图主键
     * @return 结果
     */
    @Override
    public int deleteAttractionCarouselByIds(Long[] ids)
    {
        return attractionCarouselMapper.deleteAttractionCarouselByIds(ids);
    }

    /**
     * 删除景点轮播图信息
     * 
     * @param id 景点轮播图主键
     * @return 结果
     */
    @Override
    public int deleteAttractionCarouselById(Long id)
    {
        return attractionCarouselMapper.deleteAttractionCarouselById(id);
    }
}
